package ru.agiledev.akb.ws;

import javax.xml.bind.annotation.*;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by a.kirillov
 * Date: 1/26/12 Time: 10:58 PM
 */
/*DTO for ontological entity in Aspect-Oriented Knowledge Base (AKB)*/
@XmlRootElement(name = "AKBService", namespace ="http://ws.akb.agiledev.ru/")
@XmlSeeAlso(AKBAspect.class)
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "akbObject")
public class AKBObject {
    private String value;

    List<AKBAspect> aspects;

    public AKBObject(){}

    public AKBObject(String value) {
        this.value = value;
        this.aspects = new ArrayList<AKBAspect>();
    }

    public AKBObject(String value, List<AKBAspect> aspects) {
        this.value = value;
        this.aspects = aspects;
    }

    //getters and setters
    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public List<AKBAspect> getAspects() {
        return aspects;
    }

    public void setAspects(List<AKBAspect> aspects) {
        this.aspects = aspects;
    }
}
